<?
   function m_init() {
      global $modulo, $acao;
   
   
   }
   
   function m_run() {
      global $modulo, $acao;
      
      ?>
      <h1>Mapvisualization</h1>
      
      <table width="100%" height="80%">
         <tr>
            <td valign="middle" align="center">
               <p><b>Utilize um data set abaixo:</b><br />

               <?               
               if ($handle = opendir('./datasets')) {
                  $n = 1;
                  while (false !== ($file = readdir($handle))) {
                     if ($file != "." && $file != "..") {
                        $file = str_replace(".csv", "", $file);
                        echo "$n. <a href=\"index.php?m=load&f=${file}\">${file}.csv</a> [<a href=\"datasets/${file}.csv\">download</a>]<br />\n";
                        $n++;
                     }
                  }
                  closedir($handle);
               }
               ?>
               
               <br />
               <br />
               <br />
               
               <b>Ou..</b><br />
               <a href="index.php?m=upload">Use seu proprio data set em formato CSV</a><br />
               <br />
               </p>
               <p align="center">- - -<br />
               <a href="http://lipe.advant.com.br" target="_blank">felipe santos de andrade</a>
               </p>
            </td>
         </tr>
      </table>
      

      <?
   }
?>